//
//  StatementViewController.m
//  HorizonLight
//
//  Created by lanou on 15/10/10.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import "StatementViewController.h"

@interface StatementViewController ()

@end

@implementation StatementViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationController.navigationBar.translucent = YES;
    UILabel *statementLabel = [[UILabel alloc] initWithFrame:CGRectMake(kEdge, 0, kScreenWidth - 2 * kEdge, kScreenHeight* 4 / 5)];
    statementLabel.font = [UIFont systemFontOfSize:16];
    statementLabel.text = @"1.一切移动客户端用户在下载并浏览APP手机APP软件时均被视为已经仔细阅读本条款并完全同意。凡以任何方式登录本APP，或直接、间接使用本APP资料者，均被视为自愿接受本网站相关声明和用户服务协议的约束。\n\n2.APP手机APP转载的内容并不代表APP手机APP之意见及观点，也并不意味着本网站赞同其观点或证实其内容的真实性。\n\n3.APP手机APP转载的文字、图片、音视频等资料均由本APP用户提供，其真实性、准确性和合法性由信息发布人负责。APP手机APP不提供任何保证，并不承担任何法律责任。\n\n4.APP手机APP所转载的文字、图片、音视频等资料，如果侵犯了第三方的知识产权或其他权利，责任由作者或转载者本人承担，本APP对此不承担责任。";
    CGRect frame = [statementLabel.text boundingRectWithSize:CGSizeMake(kScreenWidth - 2 * kEdge, 10000) options:NSStringDrawingUsesLineFragmentOrigin attributes:[NSDictionary dictionaryWithObject:[UIFont systemFontOfSize:16] forKey:NSFontAttributeName] context:nil];
    statementLabel.frame = CGRectMake(kEdge, 64 + 10, kScreenWidth - 2 * kEdge, frame.size.height);
    statementLabel.numberOfLines = 0;
    
    [self.view addSubview:statementLabel];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
